HAL LTDC migration: List of applicable concepts ¶
This section provides information about the HAL LTDC applicable architecture concepts.
Concepts for LTDC ¶
|
Concept |
Description |
|---|---|
|
The initialization has been split into separate initialize and configure functions:
|
|
|
Removal and conversion of init structure to configuration structure |
The initialization structure has been removed and is now part of the
|
|
The handle structure has been renamed to
|
|
|
The
|
|
|
The functions
|
|
|
New APIs are introduced to get and set LTDC features. |
|
|
Individual callback registration APIs replace global register and unregister functions |
The callback registration is handled by specific functions for each LTDC event. These functions are used to register callback functions for different LTDC events. |
|
|
|
|
All hardware macros have been removed from the HAL LTDC driver, and equivalent services are ensured through the static inline APIs. |
|
|
The LTDC state machine has been reworked to ensure transitions of the peripheral functional states. |
|
|
The HAL LTDC functions were updated to return:
|
|
|
The error management function has been renamed to
|
|
|
All TypeDef parts of the HAL LTDC driver have been removed and replaced by
|
|
|
Const keywords have been added to non-modifiable pointers to ensure that either the pointer itself or the data it points to cannot be modified. This enhances code safety and readability, prevents unintended modifications, and renders code more robust and maintainable. |
|
|
The
|
|
|
Update included file within
|
|
|
Merge HAL extension files with common ones and remove the EX prefix from APIs. |
Only one HAL LTDC header file is now available, and all the macros, defines, functions, etc., in
|
|
Add HAL PPP Services for Drivers with Handle to Retrieve Corresponding Peripheral Clock Frequency. |
The HAL LTDC driver provides a new API to retrieve the clock frequency:
|
|
Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels. |
Convert finite parameters, including LTDC instances, into enumerated types (enums) at the HAL level to enhance code readability, maintainability, and type safety. |
|
Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions). |
All HAL LTDC functions start with
|